package net.wds.ssbus.modules.ssbus.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * 日志表
 */
@Data
@Repository
public class TbSsbusLogEntrty {
    /**
     * 标识
     */
    private String  id;
    /**
     *任务名称
     */
    private String taskname;
    /**
     *任务时间
     */
    @ApiModelProperty(value = "创建时间",dataType = "java.util.date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date tasktime;
    /**
     *异常类
     */
    private String exceptionclassname;
    /**
     *异常信息
     */
    private String exceptionmessage;
    /**
     *异常原因信息null : , JcoException, 数据库错误:ORA-00001: 违反唯一约束条件
     */
    private String exceptionmessagecause;
    /**
     *异常进程
     */
    private String threadname;
    /**
     *日志内容：记录本次同步数据内容
     */
    private String data;
    /**
     *日志级别
     */
    private String logLevel;
    /**
     *批次
     */
    private String uuid;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTaskname() {
        return taskname;
    }

    public void setTaskname(String taskname) {
        this.taskname = taskname;
    }

    public Date getTasktime() {
        return tasktime;
    }

    public void setTasktime(Date tasktime) {
        this.tasktime = tasktime;
    }

    public String getExceptionclassname() {
        return exceptionclassname;
    }

    public void setExceptionclassname(String exceptionclassname) {
        this.exceptionclassname = exceptionclassname;
    }

    public String getExceptionmessage() {
        return exceptionmessage;
    }

    public void setExceptionmessage(String exceptionmessage) {
        this.exceptionmessage = exceptionmessage;
    }

    public String getExceptionmessagecause() {
        return exceptionmessagecause;
    }

    public void setExceptionmessagecause(String exceptionmessagecause) {
        this.exceptionmessagecause = exceptionmessagecause;
    }

    public String getThreadname() {
        return threadname;
    }

    public void setThreadname(String threadname) {
        this.threadname = threadname;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(String logLevel) {
        this.logLevel = logLevel;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
}
